package com.lfz.quality_effect.service;

import com.lfz.quality_effect.model.entity.TCollectionBalance;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lfz.quality_effect.model.vo.EleScoreRankVO;
import com.lfz.quality_effect.model.vo.ScoreRankVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收结存统计表 服务类
 * </p>
 *
 * @author Destiny
 * @since 2023-03-05
 */
public interface TCollectionBalanceService extends IService<TCollectionBalance> {


    /**
     * 获取民商事结案率排名
     * @return
     */
    List<ScoreRankVO> getCivilSettledRateRank();

    /**
     *
     * @param startTime
     * @param endTime
     * @return
     */
    Map<String,List<EleScoreRankVO>> getCivilSettledRateRankTrend(String startTime, String endTime);

    /**
     *  获取总结案率排名
     * @return
     */
    List<ScoreRankVO> getTotalSettledRateRank();

    /**
     * 获取总结案率趋势图
     * @param startTime
     * @param endTime
     * @return
     */
    Map<String, List<EleScoreRankVO>> getTotalSettledRateRankTrend(String startTime, String endTime);

    void uploadCivilSettledRate(MultipartFile file, String dataTime);

    void uploadTotalSettledRate(MultipartFile file, String dataTime);

    void uploadCollectBalance(MultipartFile file, String dataTime);
}
